package com.uatair.common.tcp.util;

public final class ProtocolConstants {
    // 消息ID
    public static final short MSG_AUTH = 0x0001;
    public static final short MSG_HEARTBEAT = 0x0002;
    public static final short MSG_POSITION = 0x0011;
    public static final short MSG_PHOTO = 0x0021;
    public static final short MSG_FAULT = 0x0031;
    public static final short MSG_PLATFORM_RESP = (short) 0x8001;
    public static final short MSG_ALERT_CMD = (short) 0x9001;
    public static final short MSG_ALERT_REPLY = (short) 0x9002;

    // 协议参数
    public static final byte START_FLAG = 0x7e;
    public static final byte ESCAPE_FLAG = 0x7d;
    public static final byte PROTOCOL_VERSION = 0x03;
    public static final int MAX_PACKET_SIZE = 2048;

    // 定位状态
    public static final byte POS_STATUS_NO_FIX = 0;
    public static final byte POS_STATUS_SINGLE = 1;
    public static final byte POS_STATUS_DIFF = 2;
    public static final byte POS_STATUS_FIXED = 4;
    public static final byte POS_STATUS_FLOAT = 5;

    private ProtocolConstants() {}
}
